(function (){
	var mCharts = echarts.init(document.querySelector("#pierose"))
	var option = {
		title:{
			text:'玫瑰饼图',
			left:'40%',
			top:'10%',
			textStyle:{
				color:'red'
			}
		},
		legend: {},
		tooltip: {
			trigger: "axis",
			axisPointer: {
				type: "shadow"
			},
			position: function (pos, params, el, elRect, size) {
				var obj = {top: 10};
				obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
				return obj;
			},
			extraCssText: 'width: 170px'
		},
		grid:[
			{bottom:61},
			{height:60,
				bottom:0}
		],
		dataset:{
			source:piedata
		},

		series: {
				type:'pie',
				name:'piePic',
				roseType:'radius'
				}

	};
	mCharts.setOption(option)
})();